/**
 * Created by MetaLab_Gu on 2016/4/19.
 */
angular.module('metalabPartnerApp').filter('rshighlight', function () {
    return function (text, keywords) {
        var result = text;
        for (var index=0;index<keywords.length;index++) {
            result = result.replace(new RegExp(keywords[index], 'gi'), '<i class="highlight">' + keywords[index] + '</i>');
        }
        return result;
    };
});
